<?php
class Login_model extends CI_Model {		  

	public function __construct(){
		parent::__construct();
	}

	public function get_usuario_mail($email, $senha){
	
		$this->db->where('email', $email);
		
		$this->db->where('senha',$senha);
	
		$this->db->from('usuario');
	
		return $this->db->get()->row();
	
	}

}
?>